﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace System.ComponentModel
{
    /// <summary>
    /// Provides the functionality to offer custom error information that a user interface can bind to. 
    /// </summary>
    public interface IDataErrorInfo
    {
        /// <summary>
        /// Gets an error message indicating what is wrong with this object. 
        /// </summary>
        string Error { get; }
        /// <summary>
        /// Gets the error message for the property with the given name.
        /// </summary>
        /// <param name="columnName">The name of the property whose error message to get.</param>
        /// <returns>The error message for the property. The default is an empty string ("").</returns>
        string this[string columnName] { get; }
    }
}